package org.sft;

import org.apache.log4j.Logger;
//import org.apache.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
public class Application extends SpringBootServletInitializer {
	private static final Logger log = Logger.getLogger(Application.class);

	public static void main(String[] args) throws Exception {
		SpringApplication.run(Application.class);

	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		log.info("配置JSP视图");
		return builder.sources(Application.class);
	}
}
